package cn.yanxiaohui.service.web.pattern.linked;

import cn.yanxiaohui.service.web.pattern.linked.service.NodeServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private NodeServce nodeServce;

    @RequestMapping("/node")
    public String node(){
        NodeHandler firstNodeHandler = nodeServce.getFirstNodeHandler();
        firstNodeHandler.handler();
        return "ok";
    }
}
